<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateCommentHidesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('comment_hides', function (Blueprint $table) {
            $table->id();
            $table->integer('cid')->index();
            $table->mediumText('content');
            $table->integer('require_score')->default(0)->comment('需要积分，0表示不需要');
            $table->integer('require_reply')->default(0)->comment('需要回复, 0不需要，1需要');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('comment_hides');
    }
}
